<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>userupdate.jsp</title>
</head>
<body>
	<div style="text-align:center;">
		<div style="font-size:30px;font-weight:bold;">用户修改</div>	
		<!-- http://localhost:8080/tmwp/userupdate.do -->
		<form action="userupdate.do" method="post">
		   <!-- 表单的隐藏框,不在页面上显示,但查看源代码是可以看到的 -->
		   <input type="hidden" name="userId"  value="${requestScope.user.id}"/>
		<table border="1" align="center">
			<tr>
				<td>用户名:</td>
				<td><input type="text" name="userName" value="${requestScope.user.name}"/></td>
			</tr>
			<tr>
				<td>密码:</td>
				<td><input type="password" name="userPassword" value="${requestScope.user.password}" /></td>
			</tr>
			<tr>
				<td>年龄:</td>
				<td><input type="text" name="userAge"  value="${requestScope.user.age}"/></td>
			</tr>
			<tr>
				<td>地址:</td>
				<td><input type="text" name="userAddress" value="${requestScope.user.address}"/></td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="保存" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="reset" value="重置" />
				</td>
			</tr>
		</table>
		</form>
	</div>
</body>
</html>